/*
 * @Author: yumao 123456
 * @Date: 2025-08-26 15:22:33
 * @LastEditors: yumao 123456
 * @LastEditTime: 2025-09-09 16:17:54
 * @FilePath: \龙飞\src\api\warningEvent.js
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */
import request from '@/utils/request'

const modelApi = {
  Alert: '/modelApi/alert',
  AllModel: '/modelApi/allModel',
  AlertConfigField: '/modelApi/alertConfigField',
  AlertConfig: '/modelApi/alertConfig',
}

// export function getModelLogList(parameter) {
//   return request({
//     url: modelApi.List,
//     method: 'post',
//     data: parameter,
//     formData: true,
//   })
// }
export function alert(parameter) {
  return request({
    url: modelApi.Alert,
    method: 'get',
    params: parameter,
    headers: {
      'Content-Type': 'application/json;charset=UTF-8',
    },
  })
}

export function allModel(parameter) {
  return request({
    url: modelApi.AllModel,
    method: 'get',
    params: parameter,
    headers: {
      'Content-Type': 'application/json;charset=UTF-8',
    },
  })
}

export function alertConfigField(parameter) {
  return request({
    url: modelApi.AlertConfigField,
    method: 'get',
    params: parameter,
    headers: {
      'Content-Type': 'application/json;charset=UTF-8',
    },
  })
}

export function alertConfig(parameter) {
  return request({
    url: modelApi.AlertConfig,
    method: 'get',
    params: parameter,
    headers: {
      'Content-Type': 'application/json;charset=UTF-8',
    },
  })
}

export function alertConfigPut(sub) {
  return request({
    url: modelApi.AlertConfig,
    method: 'put',
    data: sub,
    formData: true,
  })
}

export function alertDelete(sub) {
  return request({
    url: modelApi.Alert,
    method: 'delete',
    data: sub,
    formData: true,
  })
}
